﻿<Window x:Class="UI.Windows.Wizards.NewResearchWizardWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:engine="clr-namespace:WPFLocalizeExtension.Engine;assembly=WPFLocalizeExtension" 
        xmlns:lex="clr-namespace:WPFLocalizeExtension.Extensions;assembly=WPFLocalizeExtension"
        xmlns:xctk="clr-namespace:Xceed.Wpf.Toolkit;assembly=WPFToolkit.Extended"
        xmlns:controls="clr-namespace:UI.Resources.Controls"
        xmlns:toolkit="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit"

        engine:LocalizeDictionary.DesignCulture="en"
        x:Name="This"
        Title="{lex:Loc RAE:Strings:New_research_wizard}" Height="400" Width="500" Icon="/RAE;component/Resources/Icons/NewResearch.ico" ShowInTaskbar="False">

    <toolkit:Wizard Finish="WizardFinish" ExteriorPanelMinWidth="0" FinishButtonClosesWindow="True" HelpButtonVisibility="Collapsed" BackButtonContent="{lex:Loc RAE:Strings:Previous}" CancelButtonContent="{lex:Loc RAE:Strings:Cancel}" FinishButtonContent="{lex:Loc RAE:Strings:Finish}" NextButtonContent="{lex:Loc RAE:Strings:Next}" >
        <toolkit:WizardPage Title="{lex:Loc RAE:Strings:Research_information}" PageType="Interior">
            <Grid Margin="11">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="{lex:Loc RAE:Strings:Name}"/>
                <TextBox Grid.Row="0" Grid.Column="1" Height="24" Margin="0 1" Text="{Binding Name}" VerticalContentAlignment="Center"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{lex:Loc RAE:Strings:Description}"/>
                <TextBox Grid.Row="1" Grid.Column="1" Height="24" Margin="0 1" Text="{Binding Description}" VerticalContentAlignment="Center"/>
            </Grid>
        </toolkit:WizardPage>
		<toolkit:WizardPage PageType="Interior" Title="{lex:Loc RAE:Strings:Columns}" CanFinish="True">
			<controls:ColumnsSelector x:Name="ColumnsListBoxSwitch" ResultItems="{Binding Path=Columns, Mode=OneWayToSource}" />
		</toolkit:WizardPage>
		<toolkit:WizardPage PageType="Interior" Title="{lex:Loc RAE:Strings:Custom_information}" CanFinish="True">
			<DockPanel Margin="11">
				<DockPanel DockPanel.Dock="Top" Margin="0 0 0 5">
					<toolkit:WatermarkTextBox x:Name="TypeWatermarkTextBox" Watermark="{lex:Loc RAE:Strings:Type}" Width="120" DockPanel.Dock="Left" VerticalContentAlignment="Center" />
					<Button Content="{lex:Loc RAE:Strings:Add}" Width="Auto" DockPanel.Dock="Right" Padding="3 0" Click="AddCustomInformationButtonClick"/>
					<toolkit:WatermarkTextBox x:Name="ContentWatermarkTextBox" Watermark="{lex:Loc RAE:Strings:Content}" Margin="5 0 5 0" VerticalContentAlignment="Center"/>
				</DockPanel>
				<ListView ItemsSource="{Binding CustomInformation}">
					<ListView.ItemTemplate>
						<DataTemplate>
							<StackPanel Orientation="Horizontal" Margin="3">
								<TextBlock Text="["/>
								<TextBlock Text="{Binding Item1}" Margin="1 0"/>
								<TextBlock Text="]"/>
								<TextBlock Text="{Binding Item1}" Margin="5 0 0 0"/>
								<TextBlock />
							</StackPanel>
						</DataTemplate>
					</ListView.ItemTemplate>
				</ListView>
			</DockPanel>
		</toolkit:WizardPage>
	</toolkit:Wizard>
</Window>